const { stringify } = require("querystring");
const { Database } = require("sqlite3");

function sexpert(callback){
    const sqlite3 = require("sqlite3").verbose()
    const path = require('path');
    const dbName = path.join(__dirname, '../data/demo.db');
    var db,aveS=[];
    db = new sqlite3.Database(dbName,function(err){
        if(err) throw err;
    })
    db.all(` select c_id,e_id FROM cafe `,function(err,rows){
        callback(err,rows)
    })
}

module.exports=sexpert;